const { url } = require("../config")

module.exports = async message => {

    //回复消息模板的options
    let options = {
        toUserName: message.FromUserName,
        fromUserName: message.ToUserName,
        createTime: Date.now(),
        msgId: message.MsgId,
        msgType: "text"
    }

    let content = "无法识别！";
    // 回复用户信息
    if (message.MsgType === 'text') {
        content = message.Content;
    }

    options.content = content;

    return options

}